serial: lpuart: restructure lpuart driver
authorPeng Fan <[email protected]>
Wed, 22 Feb 2017 08:21:51 +0000 (16:21 +0800)
committerStefano Babic <[email protected]>
Fri, 17 Mar 2017 08:27:08 +0000 (09:27 +0100)
commitc40d612b1a6e1c63f27089d1d8fa3016164cacdb
tree40ca0a2e0d0251238aa36340754a3c12a9214000
parent7ee3f149fe776d3e46dbb517bf04ee29ec075709
serial: lpuart: restructure lpuart driver

Drop CONFIG_LPUART_32B_REG.
Move the register structure to a common file include/fsl_lpuart.h
Define lpuart_serial_platdata structure which includes the reg base and flags.
For 32Bit register access, use lpuart_read32/lpuart_write32 which handles
big/little endian.
For 8Bit register access, still use the orignal code.

Signed-off-by: Peng Fan <[email protected]>
Reviewed-by : Stefano Babic <[email protected]>
Cc: Bhuvanchandra DV <[email protected]>
Cc: York Sun <[email protected]>
Cc: Shaohui Xie <[email protected]>
Cc: Alison Wang <[email protected]>
arch/arm/cpu/armv7/vf610/generic.c
arch/arm/include/asm/arch-fsl-layerscape/imx-regs.h
arch/arm/include/asm/arch-ls102xa/imx-regs.h
arch/arm/include/asm/arch-vf610/clock.h
arch/arm/include/asm/arch-vf610/imx-regs.h
drivers/serial/serial_lpuart.c